package com.common.exception;

/**
 * @author 大忽悠
 */
public class CustomExceptionType {
    //------------------错误码----------------------

    public static Integer SUCCESS_CODE=200;
    public static Integer ERROR_CODE=500;

    //------------------成功消息提示---------------------------

    public static String SUCCESS="请求响应成功!";

    //------------------错误消息提示---------------------------

    //--> 用户认证
    public static String UNAUTHORIZED="用户未认证";
    public static String AUTHENTICATION_FAILED="用户认证失败";
    public static String AUTHENTICATION_EXPIRED="用户认证过期";

    //-->权限相关
    public static String PERMISSION_DENIED="无权限访问";

    //--> 资源相关
    public static String NOT_FOUND="资源不存在";
    public static String RESOURCE_DUPLICATION="资源重复";

    //-->参数相关
    public static String PARAM_LOST="缺失参数";
    public static String ILLEGAL_ARGUMENT="非法参数";
    public static String PARAM_RESOLVE_ERROR="参数解析错误";

    //-->通用
    public static String FAIL="失败";
    public static String INTERNAL_SERVER_ERROR="服务器内部错误";
}
